﻿<UserControl x:Class="NicoView.View.NicoViewCommentWriteFrameControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:NicoView.View"
             mc:Ignorable="d" 
             DataContext="{Binding NicoCommentEditorViewModel,Mode=OneWay,Source={StaticResource locator}}"
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>

        <Grid   >
            <Grid.Style>
                <Style TargetType="Grid">
                        <Style.Triggers>
                        <DataTrigger  Binding="{Binding CommentWriteMode, Source={StaticResource settings}}" Value="Simple">
                                <Setter Property="Visibility" Value="Collapsed"/>
                            </DataTrigger>
                        <DataTrigger  Binding="{Binding CommentWriteMode, Source={StaticResource settings}}" Value="CommentArt">
                                <Setter Property="Visibility" Value="Visible"/>
                            </DataTrigger>
                        </Style.Triggers>
                    </Style>         
            </Grid.Style>

            <local:NicoViewCommentArtWriteControl  x:Name="CommentArtWriteControl"   />
        </Grid>
        <Grid  >
            <Grid.Style>
                <Style TargetType="Grid">
                    <Style.Triggers>
                        <DataTrigger  Binding="{Binding CommentWriteMode, Source={StaticResource settings}}" Value="Simple">
                            <Setter Property="Visibility" Value="Visible"/>
                        </DataTrigger>
                        <DataTrigger  Binding="{Binding CommentWriteMode, Source={StaticResource settings}}" Value="CommentArt">
                            <Setter Property="Visibility" Value="Collapsed"/>
                        </DataTrigger>
                    </Style.Triggers>
                </Style>
            </Grid.Style>
            <local:NicoViewCommentSimplyWriteControl x:Name="CommentSimpleWriteControl"     />
        </Grid>
    </Grid>
</UserControl>
